// When color definition differs for dark and light variant,
// it gets @if ed depending on $variant
@import "ubuntu-colors";
@import "pop-os-colors";

$base_color: if($variant == 'light', #ffffff, #36322F); 
$text_color: if($variant == 'light', black, white);
$bg_color: if($variant == 'light', #F6F6F6, #33302F);
$fg_color: if($variant == 'light', #2B2928, #E6E6E6);
$dark_bg_color: $dark_ui_700;
$dark_fg_color: $light_ui_300;


$selected_fg_color: #000;
$selected_bg_color: if($variant=='light', #63B1BC, #94EBEB);
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));

$borders_color: if($variant == 'light', rgba(darken($bg_color, 18%), 0.5), rgba(darken($bg_color, 10%), 0.5));
$borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentize($fg_color, 0.93));
$link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
$link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%));

$warning_color: $text_yellow;
$error_color: $text_red;
$success_color: if($variant=='light', #82BF8C, #90CFB0);
$destructive_color: if($variant=='light', #E56A54, #EA9090);

$osd_fg_color: $light_ui_300;
$osd_text_color: white;
$osd_bg_color: transparentize(darken(desaturate($dark_ui_500, 100%), 4%),0.3);
$osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
$osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
$osd_borders_color: transparentize(black, 0.3);
$osd_outer_borders_color: transparentize(white, 0.84);
$tooltip_borders_color: $osd_outer_borders_color;

$shadow_color: if($variant == 'light', rgba(0,0,0,0.1), rgba(0,0,0,0.2));

// overview background color
// $system_bg_color: $base_color;

$system_bg_color: #36322f; //previously "gdm_grey"

//insensitive state derived colors
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
$insensitive_borders_color: $borders_color;

//colors for the backdrop state, derived from the main colors.
$backdrop_base_color: if($variant =='light', darken($base_color,1%), lighten($base_color,1%));
$backdrop_bg_color: $bg_color;
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 80%);
$backdrop_insensitive_color: if($variant =='light', darken($backdrop_bg_color,15%), lighten($backdrop_bg_color,15%));
$backdrop_borders_color: mix($borders_color, $bg_color, 90%);
$backdrop_dark_fill: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
